{# incoming variables: sections, currentSection, tags  #}
<nav>
	<ul id="mainMenu" class="x-mainmenu"> {#  needs x-mainmenu class to enable reloading menu after changes in sections pane #}
	{% for section in sections %}
		<li {% if currentSection==section %}class="selected"{% endif %}>
			<a href="{{ section.url }}">{{ section.name }}</a>
		</li>
	{% endfor %}
	</ul>
	<ul id="tags_list">
		{% for tag in tags %}
			<li>
			{% if currentTag==tag %}
				{{ tag.name }}
			{% else %}
				<a href="{{ tag.url }}">{{ tag.name }}</a>
			{% endif %}
			</li>
		{% endfor %}
	</ul>
</nav>